package com.anyi.gulimall.product.feign;

import com.anyi.gulimall.common.to.SkuReductionTo;
import com.anyi.gulimall.common.to.SpuBoundTo;
import com.anyi.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 安逸i
 * @version 1.0
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/member/spubounds/saveBounds")
    public R saveBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/member/skufullreduction/save/reduction/memberprice")
    public R saveReductionAndMemberPrice(@RequestBody SkuReductionTo skuReductionTo);
}
